export function timeDifference(time1, time2) {
    // 将时间字符串转换为分钟数
    function timeToMinutes(time) {
        const [hours, minutes] = time.split(':').map(Number);
        return hours * 60 + minutes;
    }

    // 计算两个时间的差值
    const minutes1 = timeToMinutes(time1);
    const minutes2 = timeToMinutes(time2);

    return (minutes2 - minutes1);
}